<?xml version="1.0" encoding="ISO-8859-1"?>
<%@ include file="/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head></head>
	<body>
		<form action="${ctxAdm}/time/save/${time.id}">
			<input type="hidden" name="time.id" value="${time.id}"/>
			<table>
				<tr>
					<td><fmt:message key="time.id"/></td>
					<td>${time.id}</td>
				</tr>
				<tr>
					<td><fmt:message key="time.dataAlteracao"/></td>
					<td>${time.dataAlteracao}</td>
				</tr>
				<tr>
					<td><fmt:message key="time.nomeCompleto"/></td>
					<td><input type="text" name="time.nomeCompleto" value="${time.nomeCompleto}"/></td>
				</tr>
				<tr>
					<td><fmt:message key="time.nomeCurto"/></td>
					<td><input type="text" name="time.nomeCurto" value="${time.nomeCurto}"/></td>
				</tr>
				<tr>
					<td><fmt:message key="time.anoFundacao"/></td>
					<td><input type="text" name="time.anoFundacao" value="${time.anoFundacao}"/></td>
				</tr>
				<tr>
					<td><fmt:message key="modalidade.title"/></td>
					<td>
						<select name="time.modalidade.id">
							<c:forEach items="${modalidadeList}" var="modalidade">
								<option value="${modalidade.id}" <c:if test="${time.modalidade.id eq modalidade.id}">SELECTED</c:if>>${modalidade.nome}</option>
							</c:forEach>
						</select>
					</td>
				</tr>
				<tr>
					<td><fmt:message key="pais.title"/></td>
					<td>
						<select name="time.pais.id">
							<c:forEach items="${paisList}" var="pais">
								<option value="${pais.id}" <c:if test="${time.pais.id eq pais.id}">SELECTED</c:if>>${pais.nome}</option>
							</c:forEach>
						</select>
					</td>
				</tr>
				<tr>
					<td><fmt:message key="estado.title"/></td>
					<td>
						<select name="time.estado.id">
							<c:forEach items="${estadoList}" var="estado">
								<option value="${estado.id}" <c:if test="${time.estado.id eq estado.id}">SELECTED</c:if>>${estado.nome}</option>
							</c:forEach>
						</select>
					</td>
				</tr>
			</table>
			<input type="button" onclick="location.href='${ctxAdm}/time/list'" value="Cancelar"/>
			<input type="button" onclick="location.href='${ctxAdm}/time/delete/${time.id}'" value="Apagar"/>
			<input type="submit" value="Salvar"/>
		</form>
	</body>
</html>
